package com.mcxx.modules.miniSalvation.order.service.read;

import com.mcxx.modules.miniSalvation.order.dao.read.InspectionUserReadDao;
import com.mcxx.modules.miniSalvation.order.dto.InspectionUserDTO;
import com.mcxx.modules.miniSalvation.order.entity.InspectionUserEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional(readOnly = true)
public class InspectionUserReadService {

    @Autowired
    private InspectionUserReadDao inspectionUserReadDao;


    public List<InspectionUserEntity> listAll() {
    	return inspectionUserReadDao.listAll();
    }



    public InspectionUserEntity getById(String id) {
    	return inspectionUserReadDao.getById(id);
    }


    public List<InspectionUserDTO> listByBatchId(String batchId) {
        return inspectionUserReadDao.listByBatchId(batchId);
    }
}
